package InheritanceAndPolymorphism.demo03;

public class Official extends Adult{
    private String politicalParty;
    private String position;

    public Official(String idNumber, String name, String birthDate, String education, String occupation, String politicalParty, String position) {
        super(idNumber,name,birthDate,education,occupation);
        this.politicalParty = politicalParty;
        this.position = position;
    }

    public String getPoliticalParty() {
        return politicalParty;
    }

    public void setPoliticalParty(String politicalParty) {
        this.politicalParty = politicalParty;
    }

    public String getPosition() {
        return position;
    }

    public void setPosition(String position) {
        this.position = position;
        
    }
}
